package cc.rboot.topic.annotation;

import cc.rboot.topic.core.IMessageProcessor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Component
public @interface MessageTopic {
    String name();
    Class<? extends IMessageProcessor> processor();
}
